#ifndef INPUT_H
#define INPUT_H

#include <iostream>

#include <SDL/SDL.h>

typedef struct {
	int key;
	int MouseX, MouseY;
	int MouseXRel, MouseYRel;
	int MouseButton;
	int Window;
} INPUT;

enum {
	NONE,
	LEFT_CLICK,
	RIGHT_CLICK,
	W_CLOSE
};

class BE_DLL Input {
public:
	Input();
	~Input();

	void LoadEvent( void );

	int LastKeyEvent( void );
	int LastMouseEvent( void );
	int LastWindowEvent( void );

	int MouseX( void );
	int MouseY( void );

private:
	INPUT C_Input;
	SDL_Event event;
};

#endif